﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>修改用户</title>
<link href="${pageContext.request.contextPath}/css/themes/default/easyui.css" rel="stylesheet" />
<link href="${pageContext.request.contextPath}/css/themes/icon.css" rel="stylesheet"></link>
<link href="${pageContext.request.contextPath}/css/themes/color.css" rel="stylesheet" />
<script src="${pageContext.request.contextPath}/script/jquery.min.js"></script>
<script src="${pageContext.request.contextPath}/script/jquery.easyui.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/script/easyui-lang-zh_CN.js"></script>
<style>
body {
	font-size: 12px;
	overflow-y: hidden;
}

th {
	font-size: 20px;
}

td {
	font-size: 18px;
}
</style>
</head>
<body class="easyui-layout" onload="initContent()">
	<div data-options="region:'center'">
		<div class="easyui-tabs" data-options="fit:true">
			<div title="修改已到区域" style="padding:10px;">
				<form id="f" style="margin-top:4%;margin-left: 35%;">
					<input type="hidden" name="id" value="${express.id}">
					<input type="hidden" name="sqr" value="${express.sqr}">
					<input type="hidden" name="sqrsj" value="${express.sqrsj}">
					<input type="hidden" name="sqsj" value="${express.sqsj}">
					<input type="hidden" name="sjr" value="${express.sjr}">
					<input type="hidden" name="sjrsj" value="${express.sjrsj}">
					<input type="hidden" name="kdqy" value="${express.kdqy}">
					<input type="hidden" name="kdlx" value="${express.kdlx}">
					<input type="hidden" name="kdgs" value="${express.kdgs}">
					<input type="hidden" name="yb" value="${express.yb}">
					<input type="hidden" name="yjdz" value="${express.yjdz}">
					<input type="hidden" name="sqsm" value="${express.sqsm}">
					<input type="hidden" name="bz" value="${express.bz}">
					<input type="hidden" name="sp" value="${express.sp}">
					<input type="hidden" name="dh" value="${express.dh}">
					<input type="hidden" name="yszt" value="${express.yszt}">

					<tr>
						<td><img src="${pageContext.request.contextPath}/images/ydqy.png" />
							<span style="font-size: 20px;">已到区域：</span><input class="easyui-textbox" type="text" value="${express.ydqy}" name="ydqy"
							style="width:200px;" data-options="required:true,missingMessage:'已到必填!'" /></td>
					</tr>
					</br></br>
					
					<tr>
						<td>&emsp;&emsp;&emsp;&emsp;<input type="reset" class="easyui-linkbutton c1" style="width:50px;height: 30px;" value="重置" />
						</td>
						<td>&emsp;&emsp;&emsp;<input type="button" class="easyui-linkbutton c1" style="width:50px;height: 30px;" onclick="courierupdateexpress()" value="提交" />
						</td>
					</tr>
				</form>
			</div>
		</div>
	</div>
	
	<script>
		function courierupdateexpress(){
        	var formData = new FormData($("#f")[0]);
				$.ajax({
					url:"${pageContext.request.contextPath}/courier/courierupdateexpress",
					type:"POST",				
					data:formData,
					dataType:"json",
					async: false,
	                cache: false,
	                contentType: false,
	                processData: false,	
					success:function(data){
       				 		alert("编辑成功！！！");
							window.location.href="${pageContext.request.contextPath}/courierfindexpress.html";
					},
					error:function(){
						alert("编辑失败！！！");
					}
				});
			}
	</script>
</body>
</html>
